package com.pp.demo.common.constant;

public enum UserErrorCode implements ErrorCode{

    USER_INVALID("C0001", "用户名或密码错误"),
    USER_ALREADY_EXISTS("C0002", "用户已存在"),
    USER_DISABLED("C0003", "用户已禁用"),
    USER_NOT_LOGGED_IN("C0004", "用户未登录"),
    ;

    private final String code;
    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
